## Makefile.am for DirectFB-examples/src

SUBDIRS = df_knuckles df_neo spacedream

fontsdatadir = @DATADIR@/fonts

AM_CFLAGS = @DIRECTFB_CFLAGS@ -D_GNU_SOURCE

LIBADDS = \
	@DIRECTFB_LIBS@

AM_CPPFLAGS = \
	-DDATADIR=\"@DATADIR@\" \
	-DFONT=\"$(fontsdatadir)/decker.ttf\"

noinst_PROGRAMS = ve_test

ve_test_SOURCES = ve_test.c ve.c ve.h
ve_test_LDADD   = $(LIBADDS) -lm

if WATER_RUNS
WATER_PROGS = df_matrix_water
else
WATER_PROGS =
endif

if HAVE_STEREO_API
STEREO_API_PROGS = df_andi3d df_texture3d
else
STEREO_API_PROGS =
endif

bin_PROGRAMS = \
	df_andi \
	df_bltload \
	df_drivertest \
	df_drivertest2 \
	df_cpuload \
	df_databuffer \
	df_dok \
	df_fire \
	df_flip \
	df_fonts \
	df_input \
	df_joystick \
	df_layer \
	df_matrix \
	df_netload \
	df_dioload \
	df_palette \
	df_particle \
	df_porter \
	df_video \
	df_video_particle \
	df_stress \
	df_texture \
	df_window \
	df_stereo3d \
	pss \
	$(STEREO_API_PROGS) \
	$(WATER_PROGS)

df_andi_SOURCES = df_andi.c 
df_andi_LDADD  = $(LIBADDS)

df_andi3d_SOURCES = df_andi3d.c
df_andi3d_LDADD  = $(LIBADDS)

df_drivertest_SOURCES = df_drivertest.c 
df_drivertest_LDADD  = $(LIBADDS)

df_drivertest2_SOURCES = df_drivertest2.c 
df_drivertest2_LDADD  = $(LIBADDS)

df_bltload_SOURCES = df_bltload.c 
df_bltload_LDADD  = $(LIBADDS)

df_cpuload_SOURCES = df_cpuload.c 
df_cpuload_LDADD  = $(LIBADDS)

df_databuffer_SOURCES = df_databuffer.c 
df_databuffer_LDADD  = $(LIBADDS)

df_dok_SOURCES = df_dok.c pngtest3.h
df_dok_LDADD  = $(LIBADDS)

df_fire_SOURCES = df_fire.c
df_fire_LDADD = $(LIBADDS)

df_flip_SOURCES = df_flip.c
df_flip_LDADD = $(LIBADDS)

df_fonts_SOURCES = df_fonts.c
df_fonts_LDADD = $(LIBADDS)

df_input_SOURCES = df_input.c
df_input_LDADD = $(LIBADDS)

df_joystick_SOURCES = df_joystick.c 
df_joystick_LDADD  = $(LIBADDS) -lm

df_layer_SOURCES = df_layer.c
df_layer_LDADD = $(LIBADDS) -lm

df_matrix_SOURCES = df_matrix.c
df_matrix_LDADD = $(LIBADDS) -lm

df_matrix_water_SOURCES = df_matrix_water.c
df_matrix_water_LDADD = $(LIBADDS) -lm

df_netload_SOURCES = df_netload.c 
df_netload_LDADD  = $(LIBADDS)

df_dioload_SOURCES = df_dioload.c 
df_dioload_LDADD  = $(LIBADDS)

df_palette_SOURCES = df_palette.c
df_palette_LDADD = $(LIBADDS)

df_particle_SOURCES = df_particle.c 
df_particle_LDADD  = $(LIBADDS) -lm

df_porter_SOURCES = df_porter.c 
df_porter_LDADD  = $(LIBADDS)

df_stress_SOURCES = df_stress.c
df_stress_LDADD = $(LIBADDS)

df_texture_SOURCES = df_texture.c util.h ve.c ve.h
df_texture_LDADD = $(LIBADDS) -lm

df_texture3d_SOURCES = df_texture3d.c util.h ve.c ve.h
df_texture3d_LDADD = $(LIBADDS) -lm

df_video_SOURCES = df_video.c 
df_video_LDADD  = $(LIBADDS) -lm

df_video_particle_SOURCES = df_video_particle.c 
df_video_particle_LDADD  = $(LIBADDS) -lm

df_window_SOURCES = df_window.c 
df_window_LDADD  = $(LIBADDS) -lm

df_stereo3d_SOURCES = df_stereo3d.c
df_stereo3d_LDADD  = $(LIBADDS) -lm

pss_SOURCES = pss.c
pss_LDADD = $(LIBADDS) -lm
